<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<%@ include file="/WEB-INF/views/include/easyui.jsp"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
 <script>
 
        function initEditor() {
            $('#Content').ckeditor();//控件1
        }
        initEditor();
    </script>
</head>
<body>
	<div>
		<form id="editorform" name="example"
			action="${ctx}/knowledge/${action}" method="post">
			<input type="hidden" name="id" value=" ${kgi.id}">
			<div>
				<textarea id="Content"  name="Content"> ${kgi.content }</textarea>
					<script type="text/javascript"> 
					var docHeight = $(document).height();
					CKEDITOR.replace('Content', {height : (docHeight-294) + 'px', toolbar : 'Basic', uiColor : '#9AB8F3' })
					</script>
			</div>
		</form>
	</div>
	<script type="text/javascript">
		$('#editorform').form({
			onSubmit : function() {
				var isValid = $(this).form('validate');
				return isValid; // 返回false终止表单提交
			},
			success : function(data) {
				successTip(data, dg, d);
			}
		});
	</script>
</body>
</html>